$(function() {
	$.ajax({
		type : "POST",
		async: false,
		url : SystemConfig.baseServiceUrl + "group/queryGroupInfoById",
		data : $.toJSON({'id': SystemUtil.getUrlParam('groupId')}),
		contentType : "application/json; charset=UTF-8",
		dataType : "json",
		success : function(data) {
			var groupInfo = data.groupInfo;
			$(".keep_creat_img").attr('src', SystemUtil.buildImageUrl(groupInfo.qrCodeUrl, "400x400"));
			$("#groupName").html(groupInfo.groupName);
			$("#createTime").html(SystemUtil.format(new Date(groupInfo.createTime), 'yyyy-MM-dd hh:mm:ss')+"上传");
			$("#details").html(groupInfo.details);
			$(".keep_sublit").click(function(){
				var imageSrc = $(".keep_creat_img").attr('src');
				SystemUtil.downLoadReportIMG(imageSrc);
			});
			$(".send_color").click(function(){
				window.location.href = SystemConfig.baseHtmlUrl+"groupManagerInfo.html?groupId="+SystemUtil.getUrlParam('groupId');
			});
		},
		exception : function(resp) {
			var message = resp.responseStatus.message;
			alert(message);
		}
	});
});